package cn.felord.cloud.consumer.api;

import cn.felord.cloud.consumer.feign.FooService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Dax
 * @since 13:21  2019-08-14
 */
@RestController
@RequestMapping("/bar")
public class BarController {
    @Autowired
    private FooService fooService;


    @GetMapping
    public String bar() {
        return fooService.foo();
    }

}
